<style lang="less">
  .back-btn {
    position: absolute;
    top: 44px;
    left: 24rpx;
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 18px;
    text-align: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 50%;
    color: #fff;
    z-index: 1;
  }
</style>

<template>
  <view class="back-btn iconfont icon-left" :style="{ top: `${top}px` }" @click="handleClick"></view>
</template>

<script>
export default {
  name: 'BackBtn',
  computed: {
    top() {
		  return uni.getMenuButtonBoundingClientRect().top
    }
  },
  data() {
    return {
      capsuleSize: null
    }
  },
  methods: {
    handleClick(e) {
      this.$emit('click', e)
    }
  },
}
</script>